<?php


//header('Content-type: application/json');

$arrInput = array("userid" => "".$USER -> getID()."","classname" => "truck","norm" => 3,"ismetric" => 1,"kpis" => array(array("id" => "availability","data" => true,"graphs" => array("percentile","distribution")),array("id" => "overallutilisation","data" => true,"graphs" => array("percentile","distribution"))),"items" => array(array("machine" => "CAT 777","location" => "WW","commodity"=> "ALL","type" => "main"),array("machine" => "CAT 747","location" => "WW","commodity"=> "ALL","type" => "comparison")));

print_r($arrInput);



$input = json_encode($arrInput);

$html = "<br/><a href=\"../json/jsontl.php?jsondata=".base64_encode($input)."\">json</a>";

//header('Content-type: text/html');

addContent($html);
 


?>